package view;

import java.awt.Color;
import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.border.EmptyBorder;
import javax.swing.SwingConstants;

public class JPrincipal extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JPrincipal frame = new JPrincipal();
					frame.setVisible(true);
					//frame.setExtendedState(MAXIMIZED_BOTH);
					
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public JPrincipal() {
		setResizable(false);
		setAutoRequestFocus(false);
		setForeground(Color.WHITE);
		setTitle("Principal");
		setType(Type.UTILITY);
		//setBounds(100, 100, 729, 472);
		setBounds(1366, 768, 1366, 768);
		
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnAjuda = new JMenu("Cadatrar");
		menuBar.add(mnAjuda);
		
		JMenu mnLivro = new JMenu("Livro");
		mnAjuda.add(mnLivro);
		
		JMenu mnCliente = new JMenu("Cliente");
		mnAjuda.add(mnCliente);
		
		JMenu mnDevolver = new JMenu("Devolver");
		menuBar.add(mnDevolver);
		
		JMenu mnLivro_1 = new JMenu("Livro");
		mnDevolver.add(mnLivro_1);
		
		JMenu mnNewMenu = new JMenu("Emprestar");
		menuBar.add(mnNewMenu);
		
		JMenu mnLivro_2 = new JMenu("Livro");
		mnNewMenu.add(mnLivro_2);
		
		JMenu mnVisualizar = new JMenu("Visualizar");
		menuBar.add(mnVisualizar);
		
		JMenu mnEmprestimo = new JMenu("Emprestimo");
		mnVisualizar.add(mnEmprestimo);
		
		JMenu mnSair = new JMenu("Sair");
		menuBar.add(mnSair);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(204, 204, 255));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton button = new JButton("Cancelar");
		button.setBounds(220, 295, 89, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("Cadastrar");
		button_1.setBounds(348, 295, 98, 23);
		contentPane.add(button_1);
		
		JLabel labelfundo = new JLabel((String) null);
		labelfundo.setHorizontalAlignment(SwingConstants.CENTER);
		labelfundo.setIcon(new ImageIcon("C:\\Users\\Dick developer\\workspace\\ClubeDaLeitura\\src\\image\\principal.png"));
		labelfundo.setBounds(1366, 768, 1366, 768);
		contentPane.add(labelfundo);
	}
}
